/*******************************************************************************

      ---------========= DSx86 Configuration Editor =========---------
                               by RyouArashi
                        http://ryouarashi.blogspot.com


              ---------========= License Agreement =========---------

Copyright 2010 RyouArashi. All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

   1. Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.

   2. Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY RyouArashi ``AS IS'' AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL RyouArashi OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

*******************************************************************************/

/*******************************************************************************
 * Data Constants
 ******************************************************************************/

#ifndef _CONST_H_
#define _CONST_H_

/* Line Buffer Size ***********************************************************/
#define LINE_BUFLEN 80

/* Maximum Length for Profile Name ********************************************/
#define MAX_NAME 8


/* NDS Keys *******************************************************************/
enum
{
  KEY_UP, KEY_DOWN, KEY_LEFT,  KEY_RIGHT,
  KEY_A,  KEY_B,    KEY_X,     KEY_Y,
  KEY_L,  KEY_R,    KEY_START, KEY_SELECT,

  NUM_NDSKEYS
};

/* NDS Key Strings ************************************************************/
extern const char * NDS_Keys[NUM_NDSKEYS];
extern const char * NDS_EditorKeys[NUM_NDSKEYS];


/* DSx86 Scaling Modes ********************************************************/
enum
{
  SCALE_DEFAULT, SCALE_ZOOM, SCALE_SCALE, SCALE_JITTER,
  NUM_SCALE
};

/* DSx86 Scaling Mode Strings *************************************************/
extern const char * Scale_Modes[NUM_SCALE];

/* DSx86 Update Modes *********************************************************/
enum
{
  UPDATE_DEFAULT, UPDATE_15FPS, UPDATE_30FPS, UPDATE_60FPS, UPDATE_DIRECT,
  NUM_UPDATE
};

/* DSx86 Update Mode Strings **************************************************/
extern const char * Update_Modes[NUM_UPDATE];

/* DSx86 Boolean Strings ******************************************************/
extern const char * Boolean_Modes[2];

/* DSx86 Touchpad Mouse Options ***********************************************/
enum
{
  TPM_TAP, TPM_SCROLL, TPM_RIGHT, TPM_LEFT
};

/* Editor Dimension constants */
#define TEXT_H 25
#define TEXT_W 80
#define CAPTION_X 8
#define LIST_X  5
#define LIST_Y  6
#define LIST_N  6
#define NAME_X  32
#define NAME_Y  6
#define MODE_X  34
#define MODE_Y  10
#define KEY_X1  12
#define KEY_X2  21
#define KEY_X3  35
#define KEY_Y   16
#define MSG_X   4
#define MSG_Y   22
#define MSG_W   37
#define SUB_Y   14
#define TPM_X   27
#define TPM_Y   16

/* Editor Key Matrix */
extern const char KeyPosX[];
extern const char KeyPosY[];

/* End of File ****************************************************************/
#endif
